class Dog(object):
    @staticmethod
    def sayhello():
        print("jingtaifangf")
    @classmethod
    def say(cls):
        print("nihao")
    def __init__(self,name):
        self.name=name
    
    def bark(self):
        print("旺旺叫 %s" %self.name)
        

class XiaoTian(Dog):
    
    def bark(self):
        print("神之咆哮 %s" %self.name)
class Person(object):
    
    def __init__(self,name):
        self.name=name
    
    def play(self,Dog):
        print("我叫%s，和%s一起玩耍" %(self.name,Dog.name))
        Dog.bark()

d=Dog("普通狗")
d.bark()
x=XiaoTian("哮天犬")
x.bark()

p=Person("小明")
# p.play(x)
p.play(d)#多态